<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class ModifyColumnNotifyTypeAddOrderAndReviewInMessageTable extends AbstractMigration
{
    public function up()
    {
        $this->table('message')
            ->changeColumn('notify_type', 'enum', ['values' => 'default,message_demand,message_task,message_qa,message_producer,message_capacity,message_review,message_order,task_remind,approval,examine,todo,everyday_report', 'default' => 'default', 'comment' => '通知类型'])
            ->save();
    }

    public function down()
    {
        $this->table('message')
            ->changeColumn('notify_type', 'enum', ['values' => 'default,message_demand,message_task,message_qa,message_producer,message_capacity,task_remind,approval,examine,todo,everyday_report', 'default' => 'default', 'comment' => '通知类型'])
            ->save();
    }
}
